<!DOCTYPE html>
<%@ page errorPage="error/Error.jsp"
	contentType="text/html;charset=UTF-8"
	import="com.mmp.common.util.*,com.mmp.main.util.*,com.mmp.main.entity.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%
	HospitalDevice deviceInfo = (HospitalDevice) request
			.getAttribute(Default.DEVICE_INFO_ATTR_NAME);
	if (deviceInfo == null)
		throw new Exception(
				"لم يتم تعيين جهاز لإتمام العملية المطلوبة عليه");

	String code = Common.getDisplayString(deviceInfo.getCode(), "",true);
	String serial = Common.getDisplayString(deviceInfo.getSerialNo(),"",true);
	String name = Common.getDisplayString(deviceInfo.getDeviceName(),"",true);
	String model = Common.getDisplayString(deviceInfo.getModel(), "",true);
	String category = Common.getDisplayString(deviceInfo.getLookupDeviceCategory().getName(), "",true);
	String dep = Common.getDisplayString(deviceInfo.getHospitalDepatment().getName(), "",true);
%>
</head>
<body>
	<table class="layout_grid">
		<tr>
			<td class="side_label_middle">كود الجهاز :</td>
			<td><label id="code"></label></td>
		</tr>
		<tr>
			<td class="side_label_middle">الرقم التسلسلي :</td>
			<td><label id="serial"></label></td>
		</tr>
		<tr>
			<td class="side_label_middle">اسم الجهاز :</td>
			<td><label id="name"></label></td>
		</tr>
		<tr>
			<td class="side_label_middle">موديل الجهاز :</td>
			<td><label id="model"></label></td>
		</tr>
		<tr>
			<td class="side_label_middle">فئة الجهاز :</td>
			<td><label id="category"></label> <input type="hidden"
				id="device_category" name="device_category"
				value="<%=deviceInfo.getLookupDeviceCategory().getId()%>" /></td>
		</tr>
		<tr>
			<td class="side_label_middle">الجهاز بقسم :</td>
			<td><label id="dep"></label></td>
		</tr>
	</table>
	<script>
appendIdElement("deviceId","<%=deviceInfo.getId()%>");
setInnerHTML("code","<%=code%>");
setInnerHTML("serial","<%=serial%>");
setInnerHTML("name","<%=name%>");
setInnerHTML("model","<%=model%>");
setInnerHTML("category","<%=category%>");
setInnerHTML("dep","<%=dep%>");
	</script>
</body>

</html>
